/**
 * Bestpay.com.cn Inc.
 * Copyright (c) 2011-2019 All Rights Reserved.
 */
package com.suxiaoxiao.springbootlearn.java.spi;

import java.util.ServiceLoader;

/**
 * desc
 *
 * @author zhaorongzhang
 * @version App.java, v 0.1 2019/12/23 9:40 下午 zhaorongzhang Exp $$
 */
public class App {

    public static void main(String[] args) {
        ServiceLoader<SpiDemoInterface> loaders = ServiceLoader.load(SpiDemoInterface.class);
        loaders.forEach(SpiDemoInterface::test);
    }

}